<?php
class MovimientoCaja extends AppModel {
	var $name = 'MovimientoCaja';
	var $useTable = 'movimientos_cajas';
	var $displayField = 'descripcion';
	var $validate = array(
		'id' => array(
			'blank' => array(
				'rule' => array('blank'),
				'on' => 'create' 
			)
		),
		'created' => array(
			'notEmpty' => array(
				'rule' => array('notEmpty')
			)
		),
		'descripcion' => array(
			'maxlength' => array(
				'rule' => array('maxLength', '150')
			),
			'notEmpty' => array(
				'rule' => array('notEmpty')
			)
		),
		'monto' => array(
			'decimal' => array(
				'rule' => array('decimal', 2)
			),
			'notEmpty' => array(
				'rule' => array('notEmpty')
			)
		),
		'verificado' => array(
			'boolean' => array(
				'rule' => array('boolean')
			),
			'notEmpty' => array(
				'rule' => array('notEmpty')
			)
		),
		'comentario' => array(
			'maxlength' => array(
				'rule' => array('maxLength', '255')
			)
		)
	);
}
?>